package cn.edu.scau.cmi.liuan.builderPattern;

public class Director {
	private ChickenBuilder chickenBuilder;
	private String chickenType;
	
	public void setChickenBuilder(ChickenBuilder chickenBuilder) {
        this.chickenBuilder = chickenBuilder;
    }
	
	public RoastChicken getChicken() {
        return chickenBuilder.getChicken();
    }
	
	public void constructChicken() {
		chickenBuilder.buildChicken();
		chickenBuilder.buildFlavor();
		chickenBuilder.buildSize();
		chickenType=chickenBuilder.buildType();
	}
	
}
